﻿using System.Collections.Generic;

namespace BioinformaticAlgoritms2014
{
   internal class Match
    {
        public Match(string pattern, int index)
        {
            indexes = new List<int>();
            Pattern = pattern;
            indexes.Add(index);
        }
        public string Pattern { get; set; }
        public int Count { get { return indexes.Count; } }
        public int[] Indexes { get { return indexes.ToArray(); } }

        private readonly List<int> indexes;
        public void Increase(int index)
        {
            indexes.Add(index);
        }
    }
}
